package com.zsrt.easyui.user.dao;

import java.util.List;
import java.util.Map;

import com.zsrt.common.BaseDao;
import com.zsrt.easyui.user.entity.UserEntity;

public interface UserDao extends BaseDao<UserEntity> {
	
	
	int add(UserEntity entity) throws RuntimeException;

	int counterByName(String userName);
	
	/**
	 * 分页专用方法2-1 得到总的记录数
	 * @return
	 */
	int getTotalRows(Map<String,Object> param);

	/**
	 * 分页专用方法2-2 得到用户列表
	 * @param param
	 * @return
	 */
	List<UserEntity> findWithPage(Map<String, Object> param);


	int deleteByIds(List<Integer> ids);

}
